﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using ObjectLibrary;
namespace _0912089_0912172
{
    public class MyPanel : FormItem
    {
        public MyPanel( Vector2 size,Color color, float scale, Vector3 pos, float rotationY)
        {
            Texture2D texture = TextureUntity.Create(_content, _graphicsDevice).createTexture( (int)size.X, (int)size.Y, (int)size.Y / 3, color);

            _model = new PlanarModel(_content, texture, scale, pos, rotationY);
            
            _size = ((PlanarModel)_model).Size;
            RotationY = rotationY;
            Position = pos;

        }
        public MyPanel( Vector2 size, Color color,int d, float scale, Vector3 pos, float rotationY)
        {
            Texture2D texture = TextureUntity.Create(_content, _graphicsDevice).createTexture((int)size.X, (int)size.Y, d, color);

            _model = new PlanarModel(_content, texture, scale, pos, rotationY);

            _size = ((PlanarModel)_model).Size;
            RotationY = rotationY;
            Position = pos;

        }
        public override void Update(GameTime gameTime)
        {
            //base.Update(gameTime);
        }
    }

}
